<?php

namespace App\Http\Controllers;

use Illuminate\Routing\Controller as BaseController;
use App\Model\TokenModel;
use DB;
use Log;

class IndexController extends BaseController
{
    public function index(){
      $res[] = DB::collection('wx_config')->get()->toArray();
      // Log::info($res);
      // echo json_encode($res);
      // echo PHP_EOL;
      $res[] = TokenModel::all()->toArray();
      // Log::info($res);
      echo json_encode($res);
      // return view('welcome');
    }
}
